/** basic */
body {
	background: #EFF;
	color: #4cc;
}

pre {
	margin: 0;
	white-space: pre-wrap;
	word-wrap: break-word;
	word-break: break-all;
}

.card {
	position: relative;
	display: inline-block;
	margin: 10px;
	padding: 5px;
	background: white;
	border: none;
	border-radius: 5px;
	box-shadow: 0 0 5px rgba(0, 0, 0, 0.2);
	box-sizing: border-box;
}

.card-red {
	background: pink;
	color: red;
}

.button {
	transition: background 0.1s;
	position: relative;
	display: inline-block;
	padding: 5px;
	background: #00d0d0;
	color: white;
	border: none;
	border-radius: 3px;
	box-shadow: 0 0 5px rgba(0, 0, 0, 0.2);
	box-sizing: border-box;
	overflow: hidden;
	user-select: none;
}

.button:active,
.button.down {
	background: #009090;
}

.button.disabled {
	background: #909090;
}

/** button.progress */
@keyframes progress-infinite {
	0% {
		left: -60%;
	}

	100% {
		left: 100%;
	}
}

.button.progress-infinite:after {
	width: 100%;
	height: 100%;
	top: 0%;
	animation: progress-infinite 0.5s linear infinite;
	content: " ";
	position: absolute;
	background: linear-gradient(to right,
			rgba(0, 208, 208, 0) 0%,
			rgba(0, 208, 208, 1) 30%,
			rgba(0, 208, 208, 0) 60%);
	z-index: 1;
}

.button.progress:after {
	width: var(--progress);
	height: 100%;
	bottom: 0%;
	left: 0%;
	content: " ";
	position: absolute;
	background: linear-gradient(to bottom,
			rgba(0, 208, 208, 0%) 70%,
			rgba(0, 208, 208, 100%) 80%);
	z-index: 1;
}

/** file */

#file {
	position: sticky;
	top: 30px;
	z-index: 1;
}

#file-load-input {
	display: none;
}

/** debug */

#debug {
	position: sticky;
	bottom: 30px;
	z-index: 1;
	height: 100px;
	width: 150px;
	box-sizing: border-box;
}

#debug-area {
	height: 100%;
	width: 100%;
	box-sizing: border-box;
}
